﻿<UserControl x:Class="MvcXamlController.Demo.Visualizations.Dashboard.Chart"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Width="400"
        Height="200"
        mc:Ignorable="d">
    
 
    <Grid Background="WhiteSmoke">
        
        <ItemsControl ItemsSource="{Binding .}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                <StackPanel HorizontalAlignment="Left">
                    <TextBlock Text="{Binding Name}" 
                               HorizontalAlignment="Left" Height="24" />
                    <Rectangle HorizontalAlignment="Left" 
                               Width="{Binding SalesNo}" Height="10" Fill="Red"/>
                </StackPanel>
            </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
</UserControl>
